home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / newsgroups / misc.20030409-20031118 / 000075_dhuff@armadillo.itg.ti.com_Tue May 13 17:35:56 EDT 2003.msg < prev    next >
Text File  |  2020-01-01  |  2KB  |  57 lines

  1. Article: 14296 of comp.protocols.kermit.misc
  2. Path: newsmaster.cc.columbia.edu!panix!newsfeed!arclight.uoregon.edu!logbridge.uoregon.edu!news.smu.edu!news.ti.com!not-for-mail
  3. From: David Huff <dhuff@armadillo.itg.ti.com>
  4. Newsgroups: comp.protocols.kermit.misc
  5. Subject: Re: making kermit exit to the cmd prompt
  6. Date: Tue, 13 May 2003 16:28:22 -0500
  7. Organization: Texas Instruments
  8. Lines: 35
  9. Message-ID: <pan.2003.05.13.16.28.20.796869.24852@armadillo.itg.ti.com>
  10. References: <pan.2003.05.13.15.46.19.79295.24789@armadillo.itg.ti.com> <pan.2003.05.13.15.49.42.267491.24789@armadillo.itg.ti.com> <b9rm7s$4tv$1@watsol.cc.columbia.edu>
  11. NNTP-Posting-Host: armadillo.itg.ti.com
  12. Mime-Version: 1.0
  13. Content-Type: text/plain; charset=iso885915
  14. Content-Transfer-Encoding: 8bit
  15. X-Trace: home.itg.ti.com 1052861187 13366 172.25.44.25 (13 May 2003 21:26:27 GMT)
  16. X-Complaints-To: usenet@news.ti.com
  17. NNTP-Posting-Date: 13 May 2003 21:26:27 GMT
  18. User-Agent: Pan/0.11.2 (Unix)
  19. X-Comment-To: "Frank da Cruz" <fdc@columbia.edu>
  20. Xref: newsmaster.cc.columbia.edu comp.protocols.kermit.misc:14296
  21.  
  22. On Tue, 13 May 2003 15:57:32 -0500, Frank da Cruz wrote:
  23.  
  24. > It's for use when making connections.  Theoretically it should also work when *receiving*
  25. > connections, but I'm not sure that was ever tried before now.  Anyway,
  26. > why not just put EXIT commands at the appropriate points in your script?
  27. > - Frank
  28.  
  29. Yeah, tried that:
  30.  
  31.   set <blah, blah>    ; set params
  32.   answer              ; put in answer mode with no timeout
  33.   exit                
  34.  
  35. Of course, as soon as it answers, it prompts me if it's OK to exit.
  36. I believe I can control this prompting behaviuor with SET EXIT 
  37. WARNING. But I don't want it to immediately exit after it answers, 
  38. I want it to wait until the other end hangs up. I suppose I could 
  39. just have it PAUSE first:
  40.  
  41.   set <blah, blah>      ; set params
  42.   set exit warning off  ; don't prompt on exit
  43.   answer                ; put in answer mode with no timeout
  44.   pause 10              ; sleep 10 secs
  45.   exit
  46.  
  47. but that seems, I dunno.. kinda cheesey ;) What I'd like to do is
  48. replace the 'pause 10' line with something like (pardon the pseudo 
  49. code):
  50.  
  51.   while connected {
  52.       loop
  53.   }
  54.  
  55. David
  56.